﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <META http-equiv=Content-Type content='text/html; charset=UTF-8'>
    <title>Title</title>
    <style type="text/css">
        table.reference, table.tecspec {
            border-collapse: collapse;
            width: 100%;
            margin-bottom: 4px;
            margin-top: 4px;
        }
        table.reference tr:nth-child(even) {
            background-color: #fff;
        }
        table.reference tr:nth-child(odd) {
            background-color: #f6f4f0;
        }
        table.reference th {
            color: #fff;
            background-color: #555;
            border: 1px solid #555;
            font-size: 12px;
            padding: 3px;
            vertical-align: top;
        }
        table.reference td {
            line-height: 2em;
            min-width: 24px;
            border: 1px solid #d4d4d4;
            padding: 5px;
            padding-top: 7px;
            padding-bottom: 7px;
            vertical-align: top;
        }
        .article-body h3 {
            font-size: 1.8em;
            margin: 2px 0;
            line-height: 1.8em;
        }
    </style>
</head>
<body>
<h3 style=";">ESL系统报警信息</h3>
<div>
    <div>时间: $alarmStartTime 至 $alarmEndTime</div>
    <div>商家名称: $merchantName</div>
    <div>门店名称: $storeName</div>
    <div>报警内容：</div>

    #if ($priceTagDatas.size() > 0)
        <table class="reference">
            <tbody>
            <tr>价签报警</tr>
            <tr>
                <th>价签条码</th>
                <th>商品条码</th>
                <th>商品名称</th>
                <th>报警类型</th>
                <th>报警时间</th>
            </tr>
                #foreach($element in  $priceTagDatas)
                <tr>
                    <td>
                        #if($element.getDeviceMac())
                    $element.getDeviceMac()
                #end
                    </td>
                    <td>
                        #if($element.getItemBarCode())
                    $element.getItemBarCode()
                #end
                    </td>
                    <td>
                        #if($element.getItemName())
                    $element.getItemName()
                #end
                    </td>
                    <td>
                        #if($element.getFaultType())
                    $element.getFaultType()
                #end
                    </td>
                    <td>
                        #if($element.getCreatedTime())
                    $element.getCreatedTime()
                #end
                    </td>
                </tr>
                #end
            </tbody>
        </table>
    #end

    #if ($ApDatas.size() > 0)
        <table class="reference">
            <tbody>
            <tr>基站报警</tr>
            <tr>
                <th>基站名称</th>
                <th>基站MAC</th>
                <th>报警类型</th>
                <th>报警时间</th>
                <th>状态</th>
            </tr>
                #foreach($element in $ApDatas)
                <tr>
                    <td>
                        #if($element.getDeviceMac())
                    $element.getDeviceMac()
                #end
                    </td>
                    <td>
                        #if($element.getDeviceMac())
                    $element.getDeviceMac()
                #end
                    </td>
                    <td>
                        #if($element.getFaultType())
                    $element.getFaultType()
                #end
                    </td>
                    <td>
                        #if($element.getCreatedTime())
                    $element.getCreatedTime()
                #end
                    </td>
                    <td>
                        #if($element.getProcessStatus())
                    $element.getProcessStatus()
                #end
                    </td>
                </tr>
                #end
            </tbody>
        </table>
    #end

    <div style="float: left; margin-top: 300px;;">
        <p>系统邮件(请勿回复) | ESL 报警中心</p>
    </div>
</div>
</body>
</html>